Latest Questions

What is the difference between the Conda packages nvidia::cudatoolkit and nvidia::cuda-toolkit?

cudatoolkit has metadata and a description, and seems to be widely referenced in various installation guides for different libraries, e.g. pytorch.cuda-toolkit

Simple fread operation with fill=TRUE fails

The following code generates data files where each row has a different number of columns. The option fill=TRUE appears to work only when a certain character lim

Use environment variables in CMD

Can I use environment variables in my CMD stanza in a Dockerfile? I want to do something like this: CMD ["myserver", "--arg=$ARG", "--memcache=$MEMCACHE_11211

Python: Best way to check if a key value match exists between two dictionaries?

edit I have 2 list of dictionaries and I am trying to compare the value of a key in the dictionaries list_1 to see if it that value exists in the value of a dif

Why do I have multiple entries per entity in the query output?

Would like to know why my query displays multiple entries per entity in the output. From what I understand there is only one active policy per entity. Created q

Keycloak 2fa via SMS using external REST Api

I have been trying to implement 2fa using OTP. Till now i am successful doing it via browser flow using keycloak interface to login. Keycloak provides an API to

How to fill an SVG with HTML/CSS?

I've got this SVG, it is blue however I would like it to be black, and for the outer ring to be blue and the sword to be blue, keeping the text white. This is m

How to pick specfic data from json response javascript

How to pick specific data from JSON response javascript Background-Info I'm trying to create an application to view data from haveibeenpawned's API. I don't wan

Cloudways Hosting - Will server location make a big difference in US?

If hosting several WordPress websites on 1 server, will it make a difference between choosing a server location to a particular area or will choosing a more cen

My for loop won't output anything (Matlab)

I'm trying to get this for loop to work on Matlab so I can plot these three histograms. I'm guessing it won't output because it says that my variables such as a

Class diagram for variable member with the type of `std::unqiue_ptr<T>`

class Foo{}; class Demo { public: std::unique_ptr<Foo> foo_ptr{new Foo()};; }; What's the relationship between Foo and Demo? I think it is compositi

Mudblazor clear TextField after "Enter"

I am using Mudblazor component TextField in my Blazor Server project. I want to clear the TextField after I press "Enter" Here is my code in my Index.Razor : @p

Go: Why do processes/Threads started using Win32API funcs seem to hijack and kill the parent proccess?

Now, the following code does what it's supposed to do, load calc.exe to memory and execute it, it does that fine. I've stitched together this code to show Creat

how to get the bare bone compiled binary code of a C function?

I'm trying to implement an embedded firmware on an stm32 F4 micro that takes an binary code from the serial and execute it on the micro. The idea is pretty simp

Selenium: Message: invalid selector: An invalid or illegal selector was specified

I'm trying to web scrape using selenium an NFT, website Magic Eden. When I try and scrape normal data like text on top of the page my code works fine, but when

Merge column into one string from 2D list

I want to merge one column into one string from 2D list. Are there better ways to merge it? lists = [['H', 'W'], ['e', 'o'], ['l', 'r'], ['l', 'l'], ['o','d']]

I am getting a "'NoneType' object is not subscriptable" when trying to bring in data from a URL

Here is my code: #Import libraries import os import pandas as pd import requests import matplotlib.pyplot as plt import numpy as np from datetime import date im

Add values spreadsheet iterating over cells and values to append

I would like to add the following formulas to a spreadsheet sheet["D6"] = "=AVERAGE(D3:D5)" sheet["E6"] = "=AVERAGE(E3:E5)" sheet["F6"] = "=AVERAGE(F3:

Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool;

My Spring boot app hosted in AKS Azure, while hitting the redis cache in Azure, getting Unable to connect to Redis; nested exception is org.springframework.data

VSCode snippet regex for extracting directory and replacing slashes?

I'm struggling to find a VSCode transformation regex that allows me take a string like this:MyProject.Api/Data/RandomPath/Entities/User.ts and produce:MyProject

Unable to identify cause of: ValueError: Must have equal len keys and value when setting with an iterable

Background:I have a script that makes a daily API call for financial data, returns the data as a JSON object, saves it into a pandas df before doing some manipu

JavaScript exponents

How do you do exponents in JavaScript? Like how would you do 12^2?

VS Code's Python Debugger doesn't hit the breakpoint for Odoo 10

I use VS Code extension Python version 2.2x, Python interpreter version 2.7x, and use Odoo 10 of the latest version. I'm using WSL with Ubuntu 18.4 LTS. I canno

Composer not working, windows 10 , MAMP PRO

I started using MAMP PRO in windows 10 because i need to change php versions for different projects, but composer is not working, im getting this error: $ compo

Could not find module 'PromiseKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator,

Could not find module 'PromiseKit' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator, at: /Users/.../Library/Developer/Xcode/Der

How can I add a timeslider to a leaflet map?

I have a leaflet map, exported from qgis with the qgis2web plugin. I would like to add a timeslider for this map, as every layer (representing points) has a "fr

IP address of apps scripts for whitelist

Im trying to build an automatic program that get leads from API to my google sheet. when im running the program from my pc all works great, but, when im trying

How to interpret/handle this dotnet list package --vulnerable result

I have scanned for vulnerable NuGet packages using dotnet list package --vulnerable --include-transitive. I get the following: Project `MyProject` has the follo

Moving away from IE and into edge

I have a VBS script that works great with Internet Explorer. It opens Internet Explorer in kiosk mode on multiple monitors. I have been trying to change it to l